package cm.tl.pms.enums.base;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 系统软件
 * 硬件设备
 * 软硬件混合
 */
@Getter
@AllArgsConstructor(access= AccessLevel.PRIVATE)
public enum SoftTypeEnum implements IEnum {
    system_soft("系统软件", 1),
    HARDWARE("硬件设备", 2),
    soft_hardware("软硬件混合", 3);
    private final String name;
    private final Integer value;

    public static SoftTypeEnum nameOf(Integer value) {
        for (SoftTypeEnum e : SoftTypeEnum.values()) {
            if (e.value.equals(value)) {
                return e;
            }
        }
        return null;
    }
}
